import json
dict = {'aa':"111"}
with open('data.json','w') as f:#f = open("",mode="w")
    json.dump(dict, f)

with open('data.json','r')as f:
    data = json.load(f)
    print(data,type(data))